﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPage/MasterExpert.master" AutoEventWireup="true" CodeFile="ListTask.aspx.cs" Inherits="ExpertUsers_ListTask" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Header1" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <p>
     <div style="background-color:#FF9933; direction:rtl;padding-bottom:20px;padding-top:10px;border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 4px;">
        <div style="padding-right:385px; width:100%">
        <asp:Image ID="Image2" runat="server" 
                        ImageUrl="~/Images/checklist.png" Width="17%"  />
        </div>
     
      
        <div style="width:93%;margin:auto;background-color:#FFE1A4; border:1px solid #ccc;box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.075) inset;border-radius: 7px;">
       
       <br />
       <br />
       
          <div >
      <table style="width:100%">
      <tr>
      <td>
             <div style="border: 1px solid #FF9900;border-radius:3px;box-shadow: 0px 0px 10px rgba(189, 189, 189, 0.4);padding :10px;width:90%;margin:auto; background-color: FC6;">
                <div  class="headerTable" >
                <div style="width:10%;float:right">
                    <asp:Image ID="Image1" runat="server" src="../Images/ava_default_1.jpg" Height="40px" />
                </div>
                <div style="width:50%;float:right">
                    <h3><asp:Label ID="Label3" runat="server" Text="لیست وظایف تعیین شده" ForeColor="#E87400"></asp:Label></h3>
                </div>
                </div>
                <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            BackColor="#DEBA84" BorderColor="#DEBA84" BorderStyle="None" BorderWidth="1px" 
            CellPadding="3" CellSpacing="2" DataSourceID="SqlExpertTask" Width="100%" 
              DataKeyNames="ID" onrowcommand="GridView1_RowCommand">
            <Columns>
                <asp:BoundField DataField="ID" />
                <asp:BoundField DataField="Name" HeaderText="نام مشتری" SortExpression="Name" />
                <asp:BoundField DataField="Family" HeaderText="نام خانوادگی" 
                    SortExpression="Family" />
                <asp:BoundField DataField="Address" HeaderText="آدرس" 
                    SortExpression="Address" />
                <asp:BoundField DataField="Area" HeaderText="Area" SortExpression="Area" 
                    Visible="False" />
                <asp:BoundField DataField="Mobile" HeaderText="شماره موبایل" 
                    SortExpression="Mobile" />
                <asp:BoundField DataField="Telephone" HeaderText="شماره تلفن" 
                    SortExpression="Telephone" />
                <asp:BoundField DataField="RegDate" HeaderText="تاریخ ثبت درخواست" 
                    SortExpression="RegDate" />
                <asp:BoundField DataField="Description" HeaderText="توضیحات" 
                    SortExpression="Description" />
                <asp:BoundField DataField="Type" HeaderText="نوع مشکل" 
                    SortExpression="Type" />
                <asp:BoundField DataField="ExpertId" HeaderText="ExpertId" 
                    SortExpression="ExpertId" Visible="False" />
                <asp:ButtonField Text="ثبت گزارش" />
            </Columns>
            <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
            <HeaderStyle BackColor="#A55129" Font-Bold="True" ForeColor="White" />
            <PagerStyle ForeColor="#8C4510" HorizontalAlign="Center" />
            <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
            <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
            <SortedAscendingCellStyle BackColor="#FFF1D4" />
            <SortedAscendingHeaderStyle BackColor="#B95C30" />
            <SortedDescendingCellStyle BackColor="#F1E5CE" />
            <SortedDescendingHeaderStyle BackColor="#93451F" />
        </asp:GridView>
        </div>
        </div>
      </td>
      </tr>
      <tr>
      <td>
      
          <asp:Panel ID="Panel1" runat="server" Height="64px">
              <table style="width: 100%">
                  <tr>
                      <td>
                          <asp:Panel ID="PnlRep" runat="server" Height="90px" Visible="False">
                              <table style="width: 100%">
                                  <tr>
                                      <td align="right" style="height: 30px">
                                          <asp:Label ID="Label1" runat="server" Text="توضیحات"></asp:Label>
                                      </td>
                                      <td align="right" style="height: 30px">
                                          <asp:TextBox ID="TextBox1" runat="server" TextMode="MultiLine"></asp:TextBox>
                                      </td>
                                      <td align="right" style="height: 30px; width: 63px;">
                                          <asp:Label ID="Label2" runat="server" Text="روند عملیات"></asp:Label>
                                      </td>
                                      <td style="height: 30px">
                                          <asp:DropDownList ID="DrpConf" runat="server" CssClass="textbox">
                                              <asp:ListItem Text="انجام شد" Value="1" />
                                              <asp:ListItem Text="انجام نشد" Value="0" />
                                          </asp:DropDownList>
                                      </td>
                                  </tr>
                                  <tr>
                                      <td>
                                          &nbsp;</td>
                                      <td>
                                          &nbsp;</td>
                                      <td style="width: 63px">
                                          &nbsp;</td>
                                      <td>
                                          <asp:Button ID="BtConf" runat="server" onclick="BtConf_Click" Text="تایید" 
                                              Width="137px" style="height: 29px" CssClass="Button" />
                                      </td>
                                  </tr>
                              </table>
                          </asp:Panel>
                      </td>
                  </tr>
                  <tr>
                      <td>
                          &nbsp;</td>
                  </tr>
              </table>
          </asp:Panel>
      </td>
      </tr>
      <tr>
      <td>
      
          &nbsp;</td>
      </tr>
      </table> 
      <br />
      <br />
      <br />
      </div>
      </div>
      </div>
     
        <asp:SqlDataSource ID="SqlExpertTask" runat="server" 
            ConnectionString="<%$ ConnectionStrings:CON %>" 
            ProviderName="System.Data.SqlClient" 
            
            
            SelectCommand="SELECT [Name], [Family], [Address], [Mobile], [Telephone], [RegDate],[Description], [ExpertId],[IsDone],[Type], [ID] FROM [CustCustFolder] WHERE ([ExpertId] = @ExpertId) AND [ISDone]=0">
            <SelectParameters>
                <asp:SessionParameter Name="ExpertId" SessionField="ExId" Type="Int32" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
       
    </p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="Header" Runat="Server">
</asp:Content>

